package cn.lizemin.feignclients;

import org.springframework.context.annotation.Configuration;

/**
 * @author lzm
 * @version 1.0
 * @description: 当被调用的微服务宕机了，则会走下面的调用失败后的备选方案
 * @date 2022/3/8 14:33
 */
@Configuration
public class HystrixClientFallBack implements HystrixClient {

    @Override
    public String demo(Integer id) {
        return "当前服务不可用,请稍后再试! id: "+id;
    }
}
